//
//  IPRootViewController.swift
//  iPlayer
//
//  Created by jackcheng on 2017/11/9.
//  Copyright © 2017年 xiangyue. All rights reserved.
//

import UIKit

class IPRootViewController: UITabBarController {

	let videoList = IPVideoListController()
	
	class var sharedTabbar: IPRootViewController {
		struct Static {
			static let instance = IPRootViewController()
		}
		return Static.instance
	}
	
    override func viewDidLoad() {
        super.viewDidLoad()

		let nav1 = UINavigationController.init(rootViewController: videoList)
		nav1.tabBarItem = UITabBarItem.init(title: "本地资源", image: UIImage.init(named: ""), selectedImage: UIImage.init(named: ""))
		
		self.viewControllers = [nav1]
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
